package com.wanlian.candy.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//import com.xrx.session.LoginUerSessionInfo;
//import com.xrx.util.ConstantCode;

@Controller
public class IndexController {

	@RequestMapping("/")
	public String index(HttpSession session) {
		// if (session == null)
		// {
		// return "user/login";
		// }
		// else
		// {
		// LoginUerSessionInfo userinfo = (LoginUerSessionInfo)
		// session.getAttribute(ConstantCode.USERINFO_KEY);
		// if (userinfo != null)
		// {
		// return "main/index";
		// }
		// else
		// {
		// return "user/login";
		// }
		// }
		return "main/index";
	}

	@RequestMapping("/index")
	public String mindex() {
		return "main/index";
	}
}
